package com.javasm.springmybatis.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = false)
public class Admin {

    private static final long serialVersionUID = 1L;
    private String userId;
    private String username;
    private String avater;
    private String password;
    private String role;
    private String phone;
    private String description;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private Date updateTime;
    private String email;

}
